import Layout from '@/views/layout/index.vue';
import { RouterConfig } from '../index';
const constantRouters: RouterConfig[] = [
    {
        path: '/login',
        component: () => import('@/views/login/index.vue'),
        hidden: true
    },

    {
        path: '/404',
        component: () => import('@/views/errorPage/404.vue'),
        hidden: true
    },

    // {
    //     path: '/redirect',
    //     component: Layout,
    //     hidden: true,
    //     children: [
    //         {
    //             path: '/redirect/:path(.*)',
    //             component: () => import('@/views/tools-view/redirect.vue'),
    //             meta: {
    //                 hidden: true
    //             }
    //         }
    //     ]
    // },

    {
        path: '/401',
        component: () => import('@/views/errorPage/401.vue'),
        hidden: true
    },
    // has layout
    {
        path: '',
        component: Layout,
        redirect: 'organization'
        // children: [
        //     {
        //         path: 'dashboard',
        //         component: () => import('@/views/dashboard/index.vue'),
        //         name: 'Dashboard',
        //         meta: {
        //             title: 'dashboard',
        //             icon: 'nav_home',
        //             routerId: 'dashboard',
        //             moduleId: 'dashboard',
        //             affix: true,
        //             noCache: true
        //         }
        //     }
        // ]
    }
];

export default constantRouters;
